<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>本地服务</title>
  </head>
  <body style="text-align: center; margin-top: 100px">
    <script>
      var today = new Date();
      var nArr = ['日', '一', '二', '三', '四', '五', '六'];
      var n = today.getDay();
      var s =
        today.getFullYear() +
        '-' +
        today.getMonth() +
        '-' +
        today.getDate() +
        ' ' +
        today.getHours() +
        ':' +
        today.getMinutes() +
        ':' +
        today.getSeconds() +
        ' 星期' +
        nArr[n];
      document.write(s);
    </script>
  </body>
</html>
